package arithmetic.leetCode.yi;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yilin
 * Date: 2019-08-10
 * Time: 15:49
 */
public class CanWeOverrideStaticMethod {

    public static void main(String[] args) {
        ColorScreen scrn = new ColorScreen();
        scrn.show();
    }


}


class Screen {

    public static void show() {
        System.out.printf("Static method from parent class");
    }
}

class ColorScreen extends Screen {
    /*
     * static method of same name and method signature as existed in super
     * class, this is not method overriding instead this is called
     * method hiding in Java
     */
    public static void show() {
        System.err.println("Overridden static method in Child Class in Java");
    }
}
